.rule-pannel {
  .rule-pannel-collapse {
    border: 1px solid @border-color-base;
    margin-bottom: 10px;
    padding: 10px;
    width: 100%;
    .textflow {
      width: 90%;
      font-weight: 700;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .changed {
      padding: 2px 5px;
      background: @primary-color;
    }
    .del {
      padding: 2px 5px;
      background: @error-color;
    }

    .rule-pannel-collapse-hd {
      padding: 10px 0;
      height: 48px;
      .toggle {
        display: block;
        cursor: pointer;
      }

      .anticon-caret-right {
        display: inline-block;
      }
      .anticon-caret-down {
        display: none;
      }
    }
    .rule-pannel-collapse-body {
      display: none;
      padding: 10px;
      .form-title {
        margin: 10px 0;
      }
    }
    &.open {
      .rule-pannel-collapse-hd {
        .anticon-caret-right {
          display: none;
        }
        .anticon-caret-down {
          display: inline-block;
        }
      }
      .rule-pannel-collapse-body {
        display: block;
      }
    }
  }
  &.compare-blue {
    .rule-pannel-collapse {
      border-color: @primary-color;
    }
  }
  &.compare-red {
    .rule-pannel-collapse {
      border-color: @error-color;
    }
  }
}
